
package com.bear.cmcc.NetTestHTTP.component;

import com.bear.cmcc.NetTestHTTP.util.MyCommonUtil;

public class VillageBean {

    // /**
    // * 排名
    // */
    // public int rand = 0;

    /**
     * 平均网速。
     */
    public double averageSpeed;

    /**
     * 小区名称
     */
    private String village_name;

    /**
     * 小区代码
     */
    private String village_code;

    /**
     * 城市代码
     */
    private String city_code;

    /**
     * 城市名称
     */
    private String city_name;

    /**
     * 信号强度。
     */
    public int signalStrength = -69;// 固定值

    /**
     * 掉线率
     */
    public String droppingRate = "0%";

    /**
     * 接通率
     */
    public String jietong = "100%";

    /**
     * 位置区码
     */
    public int lac = 0;

    /**
     * 扇区编号
     */
    public int ci = 0;

    public String getAverageSpeed() {
        return MyCommonUtil.getFormatString(averageSpeed);
    }

    public int getAverageSpeedInt() {
        return (int) averageSpeed;
    }

    public void setAverageSpeed(double averageSpeed) {
        this.averageSpeed = averageSpeed;
    }

    public String getVillage_name() {
        return village_name;
    }

    public void setVillage_name(String village_name) {
        this.village_name = village_name;
    }

    public String getCity_code() {
        return city_code;
    }

    public void setCity_code(String city_code) {
        this.city_code = city_code;
    }

    public String getCity_name() {
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public String getSignalStrength() {
        return "-69";
    }

    public void setSignalStrength(int signalStrength) {
        this.signalStrength = signalStrength;
    }

    public String getDroppingRate() {
        return droppingRate;
    }

    public void setDroppingRate(String droppingRate) {
        this.droppingRate = droppingRate;
    }

    public int getLac() {
        return lac;
    }

    public void setLac(int lac) {
        this.lac = lac;
    }

    public int getCi() {
        return ci;
    }

    public void setCi(int ci) {
        this.ci = ci;
    }

    // public int getRand() {
    // return rand;
    // }
    //
    // public void setRand(int rand) {
    // this.rand = rand;
    // }

    public String getJietong() {
        return jietong;
    }

    public void setJietong(String jietong) {
        this.jietong = jietong;
    }

    public String getVillage_code() {
        return village_code;
    }

    public void setVillage_code(String village_code) {
        this.village_code = village_code;
    }

    @Override
    public String toString() {
        return "VillageBean [averageSpeed=" + averageSpeed + ", village_name=" + village_name
                + ", village_code=" + village_code + ", city_code=" + city_code + ", city_name="
                + city_name + ", signalStrength=" + signalStrength + ", droppingRate="
                + droppingRate + ", jietong=" + jietong + ", lac=" + lac + ", ci=" + ci + "]";
    }

}
